setAutoStart

open fun setAutoStart(flag: Boolean)

Sets whether this control should start its operation automatically after #initialize(Module) initialization.

If enabled (set to true}), the control's play or operational logic should begin immediately after its initialization phase is complete. If disabled (set to false}), the control will wait for an explicit call to #start() before becoming active.

Sets the auto-start flag.

Parameters

flag

If true, the service will start automatically when the system boots.